package util.parser;

import java.util.Enumeration;
import java.util.Hashtable;

public class DeliciousURLInfoPost {

	/**
	 * @param args
	 */

	private String url = null;
	private Long total_posts = null;
	private String title = null;

	private String hash = null;

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	private Hashtable<String, Long> frequent_tags = new Hashtable<String, Long>();

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getTotal_posts() {
		return total_posts;
	}

	public void setTotal_posts(Long totalPosts) {
		total_posts = totalPosts;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Hashtable<String, Long> getFrequent_tags() {
		return frequent_tags;
	}

	public void setFrequent_tags(Hashtable<String, Long> frequentTags) {
		frequent_tags = frequentTags;
	}

	public String toString() {

		String string = "";

		string += url + "\n";
		string += title + "\n";
		string += total_posts + "\n";

		Enumeration<String> keys = frequent_tags.keys();

		while (keys.hasMoreElements()) {
			String key = keys.nextElement();
			string += key + "\t" + frequent_tags.get(key) + "\n";

		}

		return string;

	}

}
